<?php
/**
 * SocialEngine
 *
 * @category   Application_Extensions
 * @package    Vote
 * @copyright  Copyright 2011 KEENONWEB LLC
 * @license    http://www.keenonweb.com/
 * @version    $Id: participants.tpl 2011-03-09 01:11:30 idris $
 * @author     Idris
 */
?>

<div class="vote-participants">
  <?php $i = 0; ?>
  <?php foreach ($this->paginator as $item): ?>
    <?php $i++; ?>
    <div class="item">
      <div class="left">
        <?php echo $this->htmlLink($item->getHref(), $this->objectPhoto($item, 'thumb.normal')); ?>
      </div>
      <div class="right">
        <div class="title">
          <?php echo $this->htmlLink($item->getHref(), $item->getTitle() . $this->htmlImage($this->baseUrl() . '/application/modules/Kowcore/externals/images/launch.gif')); ?>
        </div>
        <div class="rate-info">
          <?php echo $this->objectRate($item, $this->canVote, 'small', true, $this->runonce); ?>
        </div>
        <div class="clr"></div>
      </div>
      <div class="clr"></div>
    </div>
    <?php if ($i % 4 == 0): ?><div class="clr"></div><?php endif; ?>
  <?php endforeach; ?>
  <div class="clr"></div>
</div>

<?php if (count($this->paginator > 1)): ?>
  <div class="pagination">
    <?php echo $this->paginationControl($this->paginator, null, array('vote/pagination.tpl', 'vote')); ?>
    <div class="clr"></div>
  </div>
<?php endif; ?>